.layout {
  width: 100%;
  height: 100%;

  .aside-split {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    width: 75px;
    height: 100%;
    background: linear-gradient(180deg, #1c54da 0%, #61cffc 100%);
    border-right: 1px solid #fff;

    .logo {
      box-sizing: border-box;
      height: 70px;

      img {
        width: 32px;
        object-fit: contain;
      }
    }

    .el-scrollbar {
      height: calc(100% - 70px);

      .split-list {
        flex: 1;

        .split-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          height: 100px;
          cursor: pointer;
          transition: all 0.3s ease;

          // &:hover {
          //   background-color: #292b35;
          // }

          .el-icon {
            font-size: 21px;
          }

          .title {
            margin-top: 6px;
            font-size: 12px;
            transform: scale(0.96);
          }

          .el-icon,
          .title {
            color: #e5eaf3;
          }
        }

        .split-active {
          position: relative; /* 为伪元素定位做准备 */
          background: linear-gradient(90deg, #21bcec 0%, #9cdaff 100%);
          box-shadow: inset -2px 0 5px 0 rgb(2 9 74 / 20%);

          .el-icon,
          .title {
            color: #fff;
          }
        }

        .split-active::before {
          position: absolute;
          top: 50%;
          right: 0;
          content: '';
          border-top: 6px solid transparent;
          border-right: 6px solid white; /* 箭头颜色设置为白色，可根据需求调整 */
          border-bottom: 6px solid transparent;
          transform: translateY(-50%);
        }
      }
    }
  }

  .not-aside {
    width: 0 !important;
  }

  .el-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    padding: 0 15px;
    overflow: hidden;
  }
}

.main-layout-container {
  display: flex;
  width: 100%;
  height: 100%;

  .main-layout-page {
    width: 100%;
    overflow: hidden;
  }

  .el-aside {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 5px 0 rgb(0 0 0 / 20%);
    transition: all 0.3s ease;

    .el-scrollbar {
      height: calc(100% - 55px);

      .el-menu {
        overflow-x: hidden;
        border-right: none;
      }

      .el-menu-item.is-active {
        color: #276aed;
        background: #f1f7ff;
      }
    }

    .logo {
      box-sizing: border-box;
      height: 55px;
      border-bottom: 1px solid #f0eded;

      span {
        font-size: 24px;
        font-weight: bold;
        color: #303133;
        white-space: nowrap;
      }
    }
  }
}
